package com.aisa.tracker;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.content.Intent;
import android.database.Cursor;

public class Home extends Activity {
	
		private DbAdapter mDbHelper;
		
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
				mDbHelper = new DbAdapter(this);
				mDbHelper.open();
				mDbHelper.fakeMains();
				mDbHelper.close();
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
		
		public void mainSurvey(View view) {
				Intent intent = new Intent(this, MainSurvey.class);
				startActivity(intent);
		}
		
		public void morning(View view) {
				Intent intent = new Intent(this, Morning.class);
				startActivity(intent);
		}
		
		public void graph(View view) {
				Intent intent = new Intent(this, GraphBasic.class);
				startActivity(intent);
		}
		
}
